package com.henushang.picture_pedia.domain;

public class ResponseVo {

    private boolean success;
    private String msg;

    public ResponseVo() {
    }

    public ResponseVo(boolean success, String msg) {
        this();
        this.success = success;
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static ResponseVo successInstance(String msg) {
        return new ResponseVo(true, msg);
    }
    
    public static ResponseVo failInstance(String msg) {
        return new ResponseVo(false, msg);
    }
    
    @Override
    public String toString() {
        return "success:" + success + " --- msg:" + msg ;
    }
}
